how to write a c program to convert binary numbers into decimal numbers